package com.market.goods.dao.po;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

/**
 * @author Lenovo
 */
@ToString
@Table(name = "market_goods")
@Data
public class MarketGoodsPO implements Serializable {
    private static final long serialVersionUID = -4874204855214752172L;
    /**
     * 商品id
     */
    @Column(name = "goods_id")
    private String goodsId;

    /**
     * 经度
     */
    private BigDecimal latitude;

    /**
     * 纬度
     */
    private BigDecimal longitude;

    /**
     * 商品名称
     */
    @Column(name = "goods_name")
    private String goodsName;

    /**
     * 商品类型id
     */
    @Column(name = "goods_type_id")
    private Long goodsTypeId;

    /**
     * 商品标签
     */
    @Column(name = "goods_labels")
    private String goodsLabels;

    /**
     * 商品价格
     */
    @Column(name = "goods_price")
    private BigDecimal goodsPrice;

    /**
     * 商户id
     */
    @Column(name = "shop_id")
    private String shopId;

    @Column(name = "shop_name")
    private String shopName;

    private Integer version;

    @Column(name = "created_time")
    private Date createdTime;

    @Column(name = "update_time")
    private Date updateTime;

    /**
     *商品评论级别:1 差评，2 中评，3 好评
     */
    @Column(name = "update_time")
    private int goodsGrade;

    /**
     * 商品打分1-5星
     */
    @Column(name = "update_time")
    private int goodsScoring;

    /**
     *商店评论级别:1 差评，2 中评，3 好评
     */
    @Column(name = "update_time")
    private int shopGrade;

    /**
     * 商店打分1-5星
     */
    @Column(name = "update_time")
    private int shopScoring;


    /**
     * 获取商品id
     *
     * @return goods_id - 商品id
     */
    public String getGoodsId() {
        return goodsId;
    }

    /**
     * 设置商品id
     *
     * @param goodsId 商品id
     */
    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId == null ? null : goodsId.trim();
    }

    /**
     * 获取经度
     *
     * @return latitude - 经度
     */
    public BigDecimal getLatitude() {
        return latitude;
    }

    /**
     * 设置经度
     *
     * @param latitude 经度
     */
    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    /**
     * 获取纬度
     *
     * @return longitude - 纬度
     */
    public BigDecimal getLongitude() {
        return longitude;
    }

    /**
     * 设置纬度
     *
     * @param longitude 纬度
     */
    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    /**
     * 获取商品名称
     *
     * @return goods_name - 商品名称
     */
    public String getGoodsName() {
        return goodsName;
    }

    /**
     * 设置商品名称
     *
     * @param goodsName 商品名称
     */
    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    /**
     * 获取商品类型id
     *
     * @return goods_type_id - 商品类型id
     */
    public Long getGoodsTypeId() {
        return goodsTypeId;
    }

    /**
     * 设置商品类型id
     *
     * @param goodsTypeId 商品类型id
     */
    public void setGoodsTypeId(Long goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }

    /**
     * 获取商品标签
     *
     * @return goods_labels - 商品标签
     */
    public String getGoodsLabels() {
        return goodsLabels;
    }

    /**
     * 设置商品标签
     *
     * @param goodsLabels 商品标签
     */
    public void setGoodsLabels(String goodsLabels) {
        this.goodsLabels = goodsLabels == null ? null : goodsLabels.trim();
    }

    /**
     * 获取商品价格
     *
     * @return goods_price - 商品价格
     */
    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    /**
     * 设置商品价格
     *
     * @param goodsPrice 商品价格
     */
    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    /**
     * 获取商户id
     *
     * @return shop_id - 商户id
     */
    public String getShopId() {
        return shopId;
    }

    /**
     * 设置商户id
     *
     * @param shopId 商户id
     */
    public void setShopId(String shopId) {
        this.shopId = shopId == null ? null : shopId.trim();
    }

    /**
     * @return shop_name
     */
    public String getShopName() {
        return shopName;
    }

    /**
     * @param shopName
     */
    public void setShopName(String shopName) {
        this.shopName = shopName == null ? null : shopName.trim();
    }

    /**
     * @return version
     */
    public Integer getVersion() {
        return version;
    }

    /**
     * @param version
     */
    public void setVersion(Integer version) {
        this.version = version;
    }

    /**
     * @return created_time
     */
    public Date getCreatedTime() {
        return createdTime;
    }

    /**
     * @param createdTime
     */
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    /**
     * @return update_time
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}